home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19970626-19970929 / 000120_news@newsmaster….columbia.edu _Wed Jul 30 18:07:15 1997.msg < prev    next >
Internet Message Format  |  2020-01-01  |  3KB

  1. Return-Path: <news@newsmaster.cc.columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id SAA20750
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Wed, 30 Jul 1997 18:07:14 -0400 (EDT)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id SAA01300
  7.     for kermit.misc@watsun; Wed, 30 Jul 1997 18:07:14 -0400 (EDT)
  8. Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
  9. From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
  10. Newsgroups: comp.protocols.kermit.misc
  11. Subject: Re: Exiting Kermit without dropping carrier
  12. Date: 30 Jul 1997 22:07:12 GMT
  13. Organization: Columbia University
  14. Lines: 52
  15. Message-ID: <5rodug$paf$1@apakabar.cc.columbia.edu>
  16. References: <5robi4$nv1$1@postern.mbnet.mb.ca>
  17. NNTP-Posting-Host: watsun.cc.columbia.edu
  18. Xref: news.columbia.edu comp.protocols.kermit.misc:7410
  19.  
  20. In article <5robi4$nv1$1@postern.mbnet.mb.ca>,
  21. Mike Dyck <mdyck@sirvys.com> wrote:
  22. : Anyone know a way of exiting kermit with dropping the carrier? If I disable
  23. : the modem's DTR then I can quit kermit and the line will stay alive. 
  24. : Anyone know if there is some setting in kermit that will stop kermit from
  25. : dropping the dtr?
  26. >From the Kermit FAQ:
  27.  
  28.   http://www.columbia.edu/kermit/faq.html
  29.   ftp://kermit.columbia.edu/kermit/faq.txt
  30.  
  31. 27 HOW CAN I EXIT FROM C-KERMIT WITHOUT HANGING UP?
  32.  
  33. Many people want to be able to make a dialout connection with UNIX C-Kermit,
  34. but then use some other software on the connection that C-Kermit made.  For
  35. example, they want to use C-Kermit as their SLIP or PPP dialer.  But they
  36. quickly find that when they exit from C-Kermit, that the connection is gone
  37. before they can start the other application.
  38.  
  39. It is a fundamental property of UNIX (and VMS, and Windows 95 and NT, and most
  40. other modern operating systems) that when a process exits, then every file that
  41. was opened by that process is automatically closed by the operating system.  In
  42. most cases, closing a terminal device (such as a dialout serial port) hangs up
  43. the modem (by turning off the DTR signal).  There is nothing the process can do
  44. about it.
  45.  
  46. However, many workarounds are possible.  Here are just a few:
  47.  
  48.    - If your Kermit version supports the REDIRECT command, use it to start
  49.      the desired application (e.g. "redirect pppd").  Read about the
  50.      REDIRECT command in the second edition of Using C-Kermit.
  51.  
  52.    - Tell C-Kermit to SET MODEM HANGUP-METHOD RS232, and then configure
  53.      your modem to ignore DTR (not recommended).
  54.  
  55.    - Find out the file descriptor of the open device (it is given by
  56.      C-Kermit's \v(ttyfd) variable) and then run ("!") your other program
  57.      from the C-Kermit prompt, feeding it the file descriptor, e.g.
  58.      through shell redirection or a command line option (the method
  59.      depends on the other program, the capabilities of the shell, etc).
  60.  
  61.    - After Kermit makes the connection, type "show comm" to find out the
  62.      filename of the lock file.  Then suspend Kermit, delete the lock
  63.      file, then start the other program and tell it to open the same tty
  64.      device.
  65.  
  66. Note that you can also tell C-Kermit to use a communications file descriptor
  67. created by another process; see the command-line options list in "Using
  68. C-Kermit", 2nd edition.
  69.  
  70. - Frank